﻿using System.Collections.Generic;

namespace kompot_wtf
{
    public class Pikap : GameObject
    {
        public static void CalcCollisions(List<Pikap> pikaps, Player player)
        {
            List<Pikap> toRemove = new List<Pikap>();

            foreach (Pikap pik in pikaps)
            {
                if (GameObject.CheckCollision(player, pik))
                {
                    pik.Trigger(player);
                    toRemove.Add(pik);
                }
            }

            foreach (Pikap pik in toRemove)
                pikaps.Remove(pik);
        }

        public virtual void Trigger(Player player)
        {

        }

        public virtual void Load()
        {

        }
    }
}
